//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
namespace service.hdlcontrol.com_push {
using System.Diagnostics;
using System;
using System.Xml.Serialization;
using System.ComponentModel;
using System.Web.Services.Protocols;
using System.Web.Services;
/// CodeRemarks
[System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.5.3.7")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="WebServicePushSoap", Namespace="http://tempuri.org/")]
public partial class WebServicePush : System.Web.Services.Protocols.SoapHttpClientProtocol {
private System.Threading.SendOrPostCallback JPushActionOperationCompleted;
private System.Threading.SendOrPostCallback DeviceManageOperationCompleted;
private System.Threading.SendOrPostCallback ILiftAddRegIDOperationCompleted;
private System.Threading.SendOrPostCallback AddMsgOperationCompleted;
private System.Threading.SendOrPostCallback DeleteToken_PushOperationCompleted;
public VerifySoapHeader VerifySoapHeaderValue;
private System.Threading.SendOrPostCallback AddRegIdOperationCompleted;
private System.Threading.SendOrPostCallback MsgListOperationCompleted;
/// CodeRemarks
public WebServicePush ()
{
this.Url = "http://service.hdlcontrol.com:8000/WebService/WebServicePush.asmx";
#if Crabtree
this.Url = "https://homeautomation.havells.com/api/WebService/WebServicePush.asmx";
#endif
}
public WebServicePush(string url) {
this.Url = url;
}
/// CodeRemarks
public event JPushActionCompletedEventHandler JPushActionCompleted;
/// CodeRemarks
public event DeviceManageCompletedEventHandler DeviceManageCompleted;
/// CodeRemarks
public event ILiftAddRegIDCompletedEventHandler ILiftAddRegIDCompleted;
/// CodeRemarks
public event AddMsgCompletedEventHandler AddMsgCompleted;
/// CodeRemarks
public event DeleteToken_PushCompletedEventHandler DeleteToken_PushCompleted;
/// CodeRemarks
public event AddRegIdCompletedEventHandler AddRegIdCompleted;
/// CodeRemarks
public event MsgListCompletedEventHandler MsgListCompleted;
/// CodeRemarks
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/JPushAction", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public long JPushAction(string frame, string message, string alarm) {
object[] results = this.Invoke("JPushAction", new object[] {
frame,
message,
alarm});
return ((long)(results[0]));
}
/// CodeRemarks
public void JPushActionAsync(string frame, string message, string alarm) {
this.JPushActionAsync(frame, message, alarm, null);
}
/// CodeRemarks
public void JPushActionAsync(string frame, string message, string alarm, object userState) {
if ((this.JPushActionOperationCompleted == null)) {
this.JPushActionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnJPushActionOperationCompleted);
}
this.InvokeAsync("JPushAction", new object[] {
frame,
message,
alarm}, this.JPushActionOperationCompleted, userState);
}
private void OnJPushActionOperationCompleted(object arg) {
if ((this.JPushActionCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.JPushActionCompleted(this, new JPushActionCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// CodeRemarks
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/DeviceManage", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public DeviceInfo[] DeviceManage() {
object[] results = this.Invoke("DeviceManage", new object[0]);
return ((DeviceInfo[])(results[0]));
}
/// CodeRemarks
public void DeviceManageAsync() {
this.DeviceManageAsync(null);
}
/// CodeRemarks
public void DeviceManageAsync(object userState) {
if ((this.DeviceManageOperationCompleted == null)) {
this.DeviceManageOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeviceManageOperationCompleted);
}
this.InvokeAsync("DeviceManage", new object[0], this.DeviceManageOperationCompleted, userState);
}
private void OnDeviceManageOperationCompleted(object arg) {
if ((this.DeviceManageCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.DeviceManageCompleted(this, new DeviceManageCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// CodeRemarks
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/ILiftAddRegID", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string ILiftAddRegID(string RegId, string Alias, string Email, string UserMode) {
object[] results = this.Invoke("ILiftAddRegID", new object[] {
RegId,
Alias,
Email,
UserMode});
return ((string)(results[0]));
}
/// CodeRemarks
public void ILiftAddRegIDAsync(string RegId, string Alias, string Email, string UserMode) {
this.ILiftAddRegIDAsync(RegId, Alias, Email, UserMode, null);
}
/// CodeRemarks
public void ILiftAddRegIDAsync(string RegId, string Alias, string Email, string UserMode, object userState) {
if ((this.ILiftAddRegIDOperationCompleted == null)) {
this.ILiftAddRegIDOperationCompleted = new System.Threading.SendOrPostCallback(this.OnILiftAddRegIDOperationCompleted);
}
this.InvokeAsync("ILiftAddRegID", new object[] {
RegId,
Alias,
Email,
UserMode}, this.ILiftAddRegIDOperationCompleted, userState);
}
private void OnILiftAddRegIDOperationCompleted(object arg) {
if ((this.ILiftAddRegIDCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.ILiftAddRegIDCompleted(this, new ILiftAddRegIDCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// CodeRemarks
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/AddMsg", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public int AddMsg(string regid, string msgtype, string msgcontent) {
object[] results = this.Invoke("AddMsg", new object[] {
regid,
msgtype,
msgcontent});
return ((int)(results[0]));
}
/// CodeRemarks
public void AddMsgAsync(string regid, string msgtype, string msgcontent) {
this.AddMsgAsync(regid, msgtype, msgcontent, null);
}
/// CodeRemarks
public void AddMsgAsync(string regid, string msgtype, string msgcontent, object userState) {
if ((this.AddMsgOperationCompleted == null)) {
this.AddMsgOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddMsgOperationCompleted);
}
this.InvokeAsync("AddMsg", new object[] {
regid,
msgtype,
msgcontent}, this.AddMsgOperationCompleted, userState);
}
private void OnAddMsgOperationCompleted(object arg) {
if ((this.AddMsgCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.AddMsgCompleted(this, new AddMsgCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// CodeRemarks
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/DeleteToken_Push", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public int DeleteToken_Push(string regid) {
object[] results = this.Invoke("DeleteToken_Push", new object[] {
regid});
return ((int)(results[0]));
}
/// CodeRemarks
public void DeleteToken_PushAsync(string regid) {
this.DeleteToken_PushAsync(regid, null);
}
/// CodeRemarks
public void DeleteToken_PushAsync(string regid, object userState) {
if ((this.DeleteToken_PushOperationCompleted == null)) {
this.DeleteToken_PushOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteToken_PushOperationCompleted);
}
this.InvokeAsync("DeleteToken_Push", new object[] {
regid}, this.DeleteToken_PushOperationCompleted, userState);
}
private void OnDeleteToken_PushOperationCompleted(object arg) {
if ((this.DeleteToken_PushCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.DeleteToken_PushCompleted(this, new DeleteToken_PushCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// CodeRemarks
[System.Web.Services.Protocols.SoapHeaderAttribute("VerifySoapHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/AddRegId", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public int AddRegId(string RegId, string Alias) {
object[] results = this.Invoke("AddRegId", new object[] {
RegId,
Alias});
return ((int)(results[0]));
}
/// CodeRemarks
public void AddRegIdAsync(string RegId, string Alias) {
this.AddRegIdAsync(RegId, Alias, null);
}
/// CodeRemarks
public void AddRegIdAsync(string RegId, string Alias, object userState) {
if ((this.AddRegIdOperationCompleted == null)) {
this.AddRegIdOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddRegIdOperationCompleted);
}
this.InvokeAsync("AddRegId", new object[] {
RegId,
Alias}, this.AddRegIdOperationCompleted, userState);
}
private void OnAddRegIdOperationCompleted(object arg) {
if ((this.AddRegIdCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.AddRegIdCompleted(this, new AddRegIdCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// CodeRemarks
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/MsgList", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public MsgList[] MsgList(string regid) {
object[] results = this.Invoke("MsgList", new object[] {
regid});
return ((MsgList[])(results[0]));
}
/// CodeRemarks
public void MsgListAsync(string regid) {
this.MsgListAsync(regid, null);
}
/// CodeRemarks
public void MsgListAsync(string regid, object userState) {
if ((this.MsgListOperationCompleted == null)) {
this.MsgListOperationCompleted = new System.Threading.SendOrPostCallback(this.OnMsgListOperationCompleted);
}
this.InvokeAsync("MsgList", new object[] {
regid}, this.MsgListOperationCompleted, userState);
}
private void OnMsgListOperationCompleted(object arg) {
if ((this.MsgListCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.MsgListCompleted(this, new MsgListCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// CodeRemarks
public new void CancelAsync(object userState) {
base.CancelAsync(userState);
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.5.3.7")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://tempuri.org/", IsNullable=false)]
public partial class VerifySoapHeader : System.Web.Services.Protocols.SoapHeader {
///
public string Email;
///
public int UserMode;
///
[System.Xml.Serialization.XmlAnyAttributeAttribute()]
public System.Xml.XmlAttribute[] AnyAttr;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.5.3.7")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
public partial class MsgList {
///
public long MsgID;
///
public string Msg;
///
public string MsgType;
///
public System.DateTime MsgTime;
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.5.3.7")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
public partial class DeviceInfo {
///
public string RegistrationID;
///
public string[] Tag;
///
public string Alias;
}
/// CodeRemarks
[System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.5.3.7")]
public delegate void JPushActionCompletedEventHandler(object sender, JPushActionCompletedEventArgs e);
/// CodeRemarks
[System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.5.3.7")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class JPushActionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal JPushActionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// CodeRemarks
public long Result {
get {
this.RaiseExceptionIfNecessary();
return ((long)(this.results[0]));
}
}
}
/// CodeRemarks
[System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.5.3.7")]
public delegate void DeviceManageCompletedEventHandler(object sender, DeviceManageCompletedEventArgs e);
/// CodeRemarks
[System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.5.3.7")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class DeviceManageCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal DeviceManageCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// CodeRemarks
public DeviceInfo[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((DeviceInfo[])(this.results[0]));
}
}
}
/// CodeRemarks
[System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.5.3.7")]
public delegate void ILiftAddRegIDCompletedEventHandler(object sender, ILiftAddRegIDCompletedEventArgs e);
/// CodeRemarks
[System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.5.3.7")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class ILiftAddRegIDCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal ILiftAddRegIDCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// CodeRemarks
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
/// CodeRemarks
[System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.5.3.7")]
public delegate void AddMsgCompletedEventHandler(object sender, AddMsgCompletedEventArgs e);
/// CodeRemarks
[System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.5.3.7")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class AddMsgCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal AddMsgCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// CodeRemarks
public int Result {
get {
this.RaiseExceptionIfNecessary();
return ((int)(this.results[0]));
}
}
}
/// CodeRemarks
[System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.5.3.7")]
public delegate void DeleteToken_PushCompletedEventHandler(object sender, DeleteToken_PushCompletedEventArgs e);
/// CodeRemarks
[System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.5.3.7")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class DeleteToken_PushCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal DeleteToken_PushCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// CodeRemarks
public int Result {
get {
this.RaiseExceptionIfNecessary();
return ((int)(this.results[0]));
}
}
}
/// CodeRemarks
[System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.5.3.7")]
public delegate void AddRegIdCompletedEventHandler(object sender, AddRegIdCompletedEventArgs e);
/// CodeRemarks
[System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.5.3.7")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class AddRegIdCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal AddRegIdCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// CodeRemarks
public int Result {
get {
this.RaiseExceptionIfNecessary();
return ((int)(this.results[0]));
}
}
}
/// CodeRemarks
[System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.5.3.7")]
public delegate void MsgListCompletedEventHandler(object sender, MsgListCompletedEventArgs e);
/// CodeRemarks
[System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.5.3.7")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class MsgListCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal MsgListCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// CodeRemarks
public MsgList[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((MsgList[])(this.results[0]));
}
}
}
}